\hypertarget{class_reservoir}{
\section{Reservoir Class Reference}
\label{class_reservoir}\index{Reservoir@{Reservoir}}
}


{\ttfamily \#include $<$Reservoir.h$>$}

Inheritance diagram for Reservoir:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_reservoir}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_reservoir_a0b064fbcd8ea4331d9745d4a72716c32}{Reservoir} (int id, int coordX, int coordY, int currentStoredCapacity, int maxStorageCapacity)
\item 
virtual \hyperlink{class_reservoir_a2aeb630cdd589baaa670ce3861c93f53}{$\sim$Reservoir} ()
\item 
int \hyperlink{class_reservoir_a07b9de65a2429e2b686078c7d4ff9238}{getCurrentStoredCapacity} ()
\item 
int \hyperlink{class_reservoir_a4d255f090c8623e49beb69d6174deca2}{getMaxStorageCapacity} ()
\item 
void \hyperlink{class_reservoir_ab21ba594cd01b6a754bcb7fcce18343f}{setCurrentCapacity} (int capacity)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The source of water on the network. Subclass of \hyperlink{class_location}{Location}. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_reservoir_a0b064fbcd8ea4331d9745d4a72716c32}{
\index{Reservoir@{Reservoir}!Reservoir@{Reservoir}}
\index{Reservoir@{Reservoir}!Reservoir@{Reservoir}}
\subsubsection[{Reservoir}]{\setlength{\rightskip}{0pt plus 5cm}Reservoir::Reservoir (
\begin{DoxyParamCaption}
\item[{int}]{id, }
\item[{int}]{coordX, }
\item[{int}]{coordY, }
\item[{int}]{currentStoredCapacity, }
\item[{int}]{maxStorageCapacity}
\end{DoxyParamCaption}
)}}
\label{class_reservoir_a0b064fbcd8ea4331d9745d4a72716c32}
Creates a \hyperlink{class_reservoir}{Reservoir} using: The id of a \hyperlink{class_location}{Location} (information read from the map data). The X value for the graphviewer (already converted from geographical data). The Y value for the graphviewer (already converted from geographical data). The initial amount of water stored. The maximum water taht can be stored. \hypertarget{class_reservoir_a2aeb630cdd589baaa670ce3861c93f53}{
\index{Reservoir@{Reservoir}!$\sim$Reservoir@{$\sim$Reservoir}}
\index{$\sim$Reservoir@{$\sim$Reservoir}!Reservoir@{Reservoir}}
\subsubsection[{$\sim$Reservoir}]{\setlength{\rightskip}{0pt plus 5cm}Reservoir::$\sim$Reservoir (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_reservoir_a2aeb630cdd589baaa670ce3861c93f53}
Normal destrutor. 

\subsection{Member Function Documentation}
\hypertarget{class_reservoir_a07b9de65a2429e2b686078c7d4ff9238}{
\index{Reservoir@{Reservoir}!getCurrentStoredCapacity@{getCurrentStoredCapacity}}
\index{getCurrentStoredCapacity@{getCurrentStoredCapacity}!Reservoir@{Reservoir}}
\subsubsection[{getCurrentStoredCapacity}]{\setlength{\rightskip}{0pt plus 5cm}int Reservoir::getCurrentStoredCapacity (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_reservoir_a07b9de65a2429e2b686078c7d4ff9238}
The current amount of available water. \hypertarget{class_reservoir_a4d255f090c8623e49beb69d6174deca2}{
\index{Reservoir@{Reservoir}!getMaxStorageCapacity@{getMaxStorageCapacity}}
\index{getMaxStorageCapacity@{getMaxStorageCapacity}!Reservoir@{Reservoir}}
\subsubsection[{getMaxStorageCapacity}]{\setlength{\rightskip}{0pt plus 5cm}int Reservoir::getMaxStorageCapacity (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_reservoir_a4d255f090c8623e49beb69d6174deca2}
Returns the maximum capacity of water that can be stored. \hypertarget{class_reservoir_ab21ba594cd01b6a754bcb7fcce18343f}{
\index{Reservoir@{Reservoir}!setCurrentCapacity@{setCurrentCapacity}}
\index{setCurrentCapacity@{setCurrentCapacity}!Reservoir@{Reservoir}}
\subsubsection[{setCurrentCapacity}]{\setlength{\rightskip}{0pt plus 5cm}void Reservoir::setCurrentCapacity (
\begin{DoxyParamCaption}
\item[{int}]{capacity}
\end{DoxyParamCaption}
)}}
\label{class_reservoir_ab21ba594cd01b6a754bcb7fcce18343f}
Sets the current capacity of the water source. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
C:/Users/Paulo/git/cal2012t4/water/src/\hyperlink{_reservoir_8h}{Reservoir.h}\item 
C:/Users/Paulo/git/cal2012t4/water/src/\hyperlink{_reservoir_8cpp}{Reservoir.cpp}\end{DoxyCompactItemize}
